home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Full / NetObjects Fusion 9 Standard / NOF9_Full_EN.exe / data1.cab / FSI / lib / innovative / init.js < prev    next >
Encoding:
JavaScript  |  2005-11-16  |  1.5 KB  |  58 lines

  1. /****i* SOURCE_FILE/INFO
  2.  *
  3.  * NAME
  4.  *    init.js
  5.  *
  6.  * USAGE
  7.  *    Part of IS JavaScript Library.
  8.  *
  9.  * COPYRIGHT
  10.  *    Copyright ⌐ 1999-2000 Innovative Systems SRL.
  11.  *    All Rights Reserved.
  12.  *
  13.  *  This is an unpublished work protected by Innovative Systems SRL
  14.  *  as a trade secret, and is not to be used or disclosed except as
  15.  *  expressly provided in a written license agreement executed by
  16.  *  you and Innovative Systems SRL.
  17.  *
  18.  *      <copyright@innovative.ro>
  19.  *
  20.  * NOTES
  21.  *    JavaScript code.
  22.  *
  23.  *****/
  24.  
  25. /****h* IS_JavaScript_Library/IS
  26.  *
  27.  * NAME
  28.  *    IS JavaScript Library / initialization module.
  29.  *
  30.  * DESCRIPTION
  31.  *    Definition of IS_getLibHandle function.
  32.  *
  33.  * NOTES
  34.  *    (*) This file needs to be included in any file referencing the ISJS library
  35.  ****/
  36.  
  37.  
  38. /****m* IS/getLibHandle
  39.  *
  40.  * NAME
  41.  *    getLibHandle ()
  42.  *
  43.  * DESCRIPTION
  44.  *    Returns a reference to the IS library handle.
  45.  *
  46.  * RETURN VALUE
  47.  *    the IS library handle
  48.  *
  49.  ****/
  50. function IS_getLibHandle()
  51. {
  52.   return ((typeof(top) != "undefined" && typeof(top._is) != "undefined") ? top._is :  // browsers
  53.          ((typeof(top) != "undefined" && typeof(top.opener) != "undefined" && top.opener != null && typeof(top.opener._is) != "undefined") ? top.opener._is :  // browsers  
  54.          ((typeof(MM)  != "undefined" && typeof(MM._is) != "undefined") ? MM._is :    // MacroMedia DW
  55.          ((typeof(_is) != "undefined") ? _is : null))));                              // ??
  56. }
  57. var IS = IS_getLibHandle ();
  58.